package com.ym.b2b.news.service;

import org.springframework.dao.DataAccessException;

import com.ym.b2b.commons.exception.BaseException;
import com.ym.b2b.news.sqlbean.EmBNews;
import com.zc.commons.base.Page;
import com.zc.commons.base.Result;

public interface EmBNewsService {

    public Result insertNews(EmBNews emBNews) throws DataAccessException;

    public Result searchPageEmBNews(EmBNews emBNews, Page<EmBNews> page) throws DataAccessException;

    public Result searchMobilePageEmBNews(EmBNews emBNews, Page<EmBNews> page) throws DataAccessException;

    public EmBNews searchEmBNews(EmBNews emBNews) throws DataAccessException;

    int deleteEmBNews(Long newsId) throws DataAccessException;

    public int deleteMultipleEmBNews(String newsIdList);

    public Result updateEmBNews(EmBNews emBNews) throws DataAccessException;

    public Result updateEmBNewsBat(EmBNews emBNews) throws DataAccessException;

    Result searchSimpleNewsList(EmBNews emBNews) throws BaseException;
}
